﻿#region Using directives

using System;
using System.ComponentModel;

#endregion

namespace NetROS.Tiers.Entities
{	
	///<summary>
	/// An object representation of the 'tblKlijentBankovniRacun' table. [No description found the database]	
	///</summary>
	/// <remarks>
	/// This file is generated once and will never be overwritten.
	/// </remarks>	
	[Serializable]
	[CLSCompliant(true)]
	public partial class KlijentBankovniRacun : KlijentBankovniRacunBase
	{		
		#region Constructors

		///<summary>
		/// Creates a new <see cref="KlijentBankovniRacun"/> instance.
		///</summary>
		public KlijentBankovniRacun():base(){}	
		
		#endregion

        //protected override void AddValidationRules()
        //{
        //    base.AddValidationRules();
        // //   ValidationRules.AddRule(ValidateCheckSamoOne, new NetROS.Tiers.Entities.Validation.ValidationRuleArgs("DatumOd", "Datum od"));

        //}
	    ///<summary>
	    /// Set ISDefault I postavi sve ostale u kolekciji ako je ima na false
	    ///</summary>
        //[DescriptionAttribute(""), System.ComponentModel.Bindable( System.ComponentModel.BindableSupport.Yes)]
        //[DataObjectField(false, false, false)]
        //public bool ISDefaultOne
        //{
        //    get { return IsDefault; }
        //    set
        //    {
        //        IsDefault = value;
        //        if (this != null && this.IsDefault)
        //        {
        //            TList<KlijentBankovniRacun> _parentcol = this.ParentCollection as TList<KlijentBankovniRacun>;
        //            if (_parentcol != null)
        //            {
        //                foreach (KlijentBankovniRacun _racun in _parentcol)
        //                {
        //                        if (  _racun != this)
        //                        {
        //                            _racun.IsDefault = false;
        //                        }
        //                }
        //                //TList<KlijentBankovniRacun> _found = _parentcol.FindAll(KlijentBankovniRacunColumn.IsDefault, true);
        //                //if (_found.Count > 1)
        //                //{
                           

        //                //}

        //            }
        //        }
                
        //    }
        //}
   
	}
}
